<% content_for :css do %>
  <%= stylesheet_link_tag 'valleyer/friend/friendBase' %>
  <%= stylesheet_link_tag 'valleyer/friend/friendMain' %>
  <%= stylesheet_link_tag 'valleyer/friend/friendFind' %>
<% end %>
<div class="left">
  <div class="function">
    <div class="title">应用列表</div>
    <div class="content">
      <div class="monomer"></div>
      <div class="monomer">
        <%= link_to_remote "我的好友",
          :update => "right",
          :url => friend_ships_url(),
          :method => :get,
          :html => {
          :class => "monomer_1"
          }
        %>
      </div>
      <div class="monomer">
        <%= link_to_remote "寻找好友",
          :update => "right",
          :url => url_for(:action => :search),
          :html => {
          :class => "monomer_2"
          }
        %>
      </div>
      <div class="monomer">
        <%= link_to_remote "添加好友",
          :update => "right",
          :url => url_for(:action => :add_friends),
          :html => {
          :class => "monomer_3"
          }
        %>
      </div>
      <div class="monomer">
        <%= link_to_remote "交友申请",
          :update => "right",
          :url => url_for(:action => :ask_for_pals),
          :html => {
          :id => :friend_apply,
          :class => "monomer_4"
          }
        %>
      </div>
      <!--<div class="monomer"><a class="monomer_4" href="javascript:;">好友共享</a></div>
      <div class="monomer"><a class="monomer_5" href="javascript:;">留言板</a></div>-->
    </div>
  </div>
  <!--<div class="function">
    <div class="title">好友分组</div>
    <div class="content">
      <div class="monomer"><a class="monomer_1" href="javascript:;">同事</a></div>
      <div class="monomer"><a class="monomer_2" href="javascript:;">校友</a></div>
      <div class="monomer"><a class="monomer_3" href="javascript:;">其他</a></div>
      <div class="monomer"></div>
      <div class="monomer"></div>
    </div>
  </div>-->
</div>
<div id="right" class="right">
  <%= render :file => "friend_ships/index.js" %>
</div>
<script type="text/javascript">
  <% if params[:cmd] == "friend_apply" %>
    $("friend_apply").onclick();
  <% end %>
</script>